<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生管理</title>
    <link href="<?php echo C('WEB_URL');?>Public/admin/style/base.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo C('WEB_URL');?>Public/admin/style/master.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<?php echo C('WEB_URL');?>Public/admin/js/jquery1.9.1.js"></script>
    <script type="text/javascript" src="<?php echo C('WEB_URL');?>Public/admin/js/base.js"></script>
	<style type="text/css">
	.box-info{position:absolute;top:0px;bottom:0;right:0px;left:0px;border:1px solid red;background-color:rgba(144,144,145,0.5);display:none}
	.UE img{height:30px;};
	</style>
</head>
<body>

    <div id="wrapper">
        <h2>问题反馈<a href="<?php echo U('edit');?>" class="but_add">添加</a></h2>
        <table class="list">
            <thead>
			<!--筛选-->
		<!-- <form action="<?php echo U('index');?>" method="post" enctype="multipart/form-data">
        
			学生名称:<input type='text' class='inputText' name='name' value="<?php echo ($_REQUEST['name']); ?>"/>
			
			<input type='submit' value='搜索' class='btnOrange'>
		</form> -->
                <tr>
					<th>问题ID</th>
					<th>用户ID</th>
					<th>问题类型</th>
					<th>图片</th>
					<th>内容</th>
					<th>时间</th>
				
                </tr>
            </thead>
            <tbody id='tb'>
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr align="center" id="J_list<?php echo ($vo['id']); ?>">
                    <td><?php echo ($vo["id"]); ?></td>
                    <td><?php echo ($vo["user_id"]); ?></td>
                    <td><?php echo ($vo["question"]); ?></td>
                    
                    <td> <a	href="<?php echo C('WEB_URL'); echo ($vo["error_img"]); ?>"><img src="<?php echo C('WEB_URL'); echo ($vo["error_img"]); ?>"></a>	</td>
                    <td><?php echo ($vo["content"]); ?></td>
                 
                    <td><?php echo (date("Y-m-d H:i",$vo["time"])); ?></td>
                    
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
        <p class="hr_10"></p>
        <div class="pages"><?php echo ($page); ?> </div>
    </div>
	
	<div class='box-info'>
	</div>
<script type="text/javascript">
	  $(document).on("click","a.J_itemDel",function(){
                $(this).parent("li").remove();
            })
	  
	  $("#tb .del").click(function(){
	  	if(confirm('确定要删除？')){
	  		var vars=$(this).attr('sid');
	  		$.ajax({
	  			type:"post",
	  			url:"del",
	  			async:false,
	  			data:'sid='+vars,
	  			dataType: "json",
	  			success:function(data){
	  				if(data==1){
	  					location.reload();
	  				}
	  			}
	  		});
	  	}
	  })
	  
</script>
</body>
</html>